﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ReallyReallyReallySimpleRoguelike.Managers;
using ReallyReallyReallySimpleRoguelikeData;

namespace ReallyReallyReallySimpleRoguelike.Screens
{
    class GameConclusionScreen:Screen
    {

        string victoryText;
        string gameOverText;

        public GameConclusionScreen()
        {
            victoryText = TxtFileToString.Read("Content/Texts/Victory.txt");
            gameOverText = TxtFileToString.Read("Content/Texts/GameOver.txt");  
        }

        public void Show(bool hasPlayerWon)
        {
            Console.Clear();
            
            string gameConclusionText = (hasPlayerWon) ? victoryText : gameOverText;

            WriteString(gameConclusionText,ConsoleColor.White);
            
            DungeonManager.Instance.SoundManager.PlaySound(SoundList.Pluck.ToString());
            
            Console.ReadKey();
        }
    }
}
